/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Chart wrapper */
.chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Chart container with border */
.chart-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 30px;
  border: 2px solid #e1e5e9;
  max-width: 95%;
  max-height: 95vh;
  overflow: hidden;
}

/* Chart container */
#container {
  height: 1200px;
  width: 1400px;
  background-color: #ffffff;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Legend styling */
.echarts-legend {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 1200px) {
  .chart-container {
    padding: 20px;
    max-width: 98%;
  }
  
  #container {
    height: 800px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .chart-container {
    padding: 15px;
    max-width: 98%;
  }
  
  #container {
    height: 500px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .chart-container {
    padding: 10px;
    max-width: 99%;
  }
  
  #container {
    height: 400px;
    width: 100%;
  }
}

/* 控制按钮样式 */
.chart-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.control-btn {
  padding: 8px 16px;
  border: 2px solid;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  color: white;
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.control-btn:active {
  transform: translateY(0);
}

/* 暂停按钮特殊样式 */
.pause-btn {
  border-color: #ff6b6b;
  background: #ff6b6b;
}

.pause-btn.continued {
  border-color: #4ecdc4;
  background: #4ecdc4;
}

/* 新增颜色按钮样式 */
.yellow-btn {
  border-color: #fac858;
  background: #fac858;
}

.red-btn {
  border-color: #ee6666;
  background: #ee6666;
}

.cyan-btn {
  border-color: #73c0de;
  background: #73c0de;
}

.green2-btn {
  border-color: #3ba272;
  background: #3ba272;
}

.orange-btn {
  border-color: #fc8452;
  background: #fc8452;
}

/* 使用说明响应式设计 */
@media (max-width: 768px) {
  .instructions {
    display: none;
  }
}
